import React, { useEffect } from "react";
import { Provider } from "mobx-react";
import { MainStore } from "src/store/index";
import "./styles/base.scss";
import "antd-mobile/es/global";

import "ag-grid-community/styles/ag-grid.css";
import "ag-grid-community/styles/ag-theme-material.css";

import RootRoute from "src/routes/index";

const App = () => {
    const store = MainStore.create({});
    return (
        <Provider store={store}>
            <RootRoute store={store} />
        </Provider>
    );
};
export default App;
